package com.cangsan.erhai.vo;

import com.baomidou.mybatisplus.annotation.*;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import java.util.Date;
@Data
public class TabContestVo {

    @TableId(value = "id", type = IdType.AUTO)
    private Long id;

    /**
     * 比赛名称
     */
    @TableField(value = "contest_title")
    private String contestTitle;

    @TableField(value = "live_source")
    private String liveSource;

    /**
     * 开始时间
     */
    @TableField(value = "contest_start_time")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    private Date contestStartTime;

    /**
     * 结束时间
     */
    @TableField(value = "contest_end_time")
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    private Date contestEndTime;

    /**
     * 比赛人制
     */
    @TableField(value = "contest_number")
    private String contestNumber;

    /**
     * 比赛地址
     */
    @TableField(value = "contest_address")
    private String contestAddress;

    /**
     * 比赛状态
     */
    @TableField(value = "contest_status")
    private String contestStatus;
    @TableLogic // 标记为逻辑删除字段
    private Integer isDel;
    /**
     * 比赛场地
     */
    @TableField(value = "contest_place")
    private String contestPlace;
    @TableField(value = "update_time",fill = FieldFill.INSERT_UPDATE)
    private Date updateTime;
    /**
     * 创建时间
     */
    @TableField(value = "create_time" ,fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd hh:mm:ss", timezone = "GMT+8")
    private Date createTime;
    @TableField(value = "makeres" ,fill = FieldFill.INSERT)
    private int makeres;



    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}
